// @ts-ignore
/* eslint-disable */
import request from "@/plugins/globalRequest";

/** 测试接口 GET /backStage/admin/getUser */
export async function getUserUsingGET(options?: { [key: string]: any }) {
  return request<API.BaseResultString_>('/backStage/admin/getUser', {
    method: 'GET',
    ...(options || {}),
  });
}

/** 管理员登录接口 POST /backStage/admin/login */
export async function adminLoginUsingPOST(
  body: API.LoginFormDTO,
  options?: { [key: string]: any },
) {
  return request<API.BaseResultAdminLoginVO_>('/backStage/admin/login', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 注销接口 GET /backStage/admin/logout */
export async function logOutUsingGET(options?: { [key: string]: any }) {
  return request<API.BaseResultString_>('/backStage/admin/logout', {
    method: 'GET',
    ...(options || {}),
  });
}
